Woocommerce\Pagarme\Controller\Checkout\CustomerFields S

Total Complexity 43
Dependencies 6
Dependents 1
Total lines 358
Lines of code 187
Logical lines of code 83
Comment lines 91
Methods 17
Properties 0

Methods 17

Method Rating Maintainability Complexity Lines of code
validateDocument()
S
47 5 41
hasCheckoutBlocksDocumentField()
S
56 4 19
validateCheckoutBlocksDocument()
S
51 3 32
isValidCpf()
S
63 4 11
displayDocumentOrderMeta()
S
56 3 20
calculateCnpjCheckDigit()
S
62 4 10
isValidCnpj()
S
62 3 11
calculateCpfDigit()
S
65 3 8
getDocumentValidationFunctionName()
S
70 2 6
hasDocumentField()
S
74 2 4
isValidDocumentLength()
S
75 2 4
isValidCpfFormat()
S
77 2 3
isValidCnpjFormat()
S
77 2 3
getDocumentType()
S
80 1 3
isValidDocument()
S
73 1 5
getDocumentMetaNameByAddressType()
S
79 1 3
isValidCpfDigit()
S
75 1 4